package com.sjy.shopmall.service.impl;

import com.sjy.shopmall.dao.GoodsMapper;
import com.sjy.shopmall.pojo.Goods;
import com.sjy.shopmall.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource
    GoodsMapper goodsMapper;
    @Override
    public List<Goods> allGoods() {
        return goodsMapper.selectAll();
    }
}
